package com.code.softeem.lianxi.demo3;

import com.code.softeem.finaltest.Emp;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/20 15:28
 * @description
 */
public class Test {
    public static void main(String[] args) {
        ptyg pt1 = new ptyg("老1", "1001", 5000);
        ptyg pt2 = new ptyg("老2","1002",5004);
        ptyg pt3 = new ptyg("老3","1003",5040);
        ptyg pt4 = new ptyg("老4","1004",5600);
        ptyg pt5 = new ptyg("老5","1005",5050);
        xmjl jl1 = new xmjl("老6", "1006", 5040, 1000);
        xmjl jl2 = new xmjl("老7","1007",5040,1500);


        ptyg[] pt = new ptyg[]{pt1,pt2,pt3,pt4,pt5};
        for (ptyg ptyg : pt) {
            ptyg.jsgz();
        }
        xmjl[] jl = new xmjl[]{jl1,jl2};
        for (xmjl xmjl : jl) {
            xmjl.jsgz();
        }
    }
}
